﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateStepFormTemplateConfig
{
	/// <summary>
	/// 工作流模板步骤表单模板配置
	/// </summary>
	public class WorkflowTemplateStepFormTemplateConfigRequestDto
	{
		/// <summary>
		/// 工作流模板Code
		/// </summary>		
		[Display(Name = "工作流模板Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateCode { get; set; }
		/// <summary>
		/// 工作流模板名称
		/// </summary>		
		[Display(Name = "工作流模板名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateName { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateStepCode { get; set; }
		/// <summary>
		/// 审核人表单序号
		/// </summary>		
		[Display(Name = "审核人表单序号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int Id { get; set; }
		/// <summary>
		/// 审核人表单Key
		/// </summary>		
		[Display(Name = "审核人表单Key")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string Key { get; set; }
		/// <summary>
		/// 表单配置Code
		/// </summary>		
		[Display(Name = "表单配置Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string FormConfigCode { get; set; }
		/// <summary>
		/// 工作流模板步骤自定义表单配置Id
		/// </summary>		
		[Display(Name = "工作流模板步骤自定义表单配置Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long WorkflowTemplateStepFormConfigId { get; set; }
		/// <summary>
		/// 自定义表单分类名称
		/// </summary>		
		[Display(Name = "自定义表单分类名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string FormCategoryName { get; set; }
		/// <summary>
		/// 自定义表单配置标题
		/// </summary>		
		[Display(Name = "自定义表单配置标题")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string FormConfigTitle { get; set; }
		/// <summary>
		/// 是否为特殊表单
		/// </summary>		
		[Display(Name = "是否为特殊表单")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public bool IsSpecificForm { get; set; }
	}
}

